macos: avoid size/origin changes when possible
authorChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 21:09:57 +0000 (13:09 -0800)
committerChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 21:09:57 +0000 (13:09 -0800)
commit51607ce93c2d27fe1314ee54685a122a2abffac3
tree6e0db2eb439527151ccd77cd230b7c264ba3e140
parent66284cd24547a8adc56ca3d24558b83465bd7986
macos: avoid size/origin changes when possible

If _gdk_macos_surface_move_resize() was called with various -1 parameters
we really want to avoid changing anything even if we think we know what
the value might be. Otherwise, we risk messing up in-flight operations that
we have not yet been notified of yet.

This improves the chances we place windows in an appropriate location as
they don't et screwed up before window-manager placement.
gdk/macos/gdkmacossurface.c